package com.csu.petstore.service;

import com.csu.petstore.common.CommonResponse;
import com.csu.petstore.pojo.Item;
import com.csu.petstore.vo.CategoryVo;
import com.csu.petstore.vo.ItemVo;
import com.csu.petstore.vo.ProductVo;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CatalogService {
    public CommonResponse<CategoryVo> getCategory(String categoryId);
    //从数据库中获得要查询的商品
    public CommonResponse<ProductVo> getProduct(String productId);
    //从数据库中获得要搜索的商品
    public CommonResponse<CategoryVo> getSearchProduct(String keyword);
    //从数据库中获得商品的详细信息
    public CommonResponse<ItemVo> getItem(String itemId);
}
